#include "LexVal.h"
//necessary

void printLexVal(FILE* f,LexVal obj,int meaning){
	switch (meaning){
	case LEXVAL_BOOLEAN_MEANING: {
		fprintf(f,"%s",obj.ival?"true":"false");
		break;
	}
	case LEXVAL_INTEGER_MEANING: {
		fprintf(f,"%d",obj.ival);
		break;
	}
	case LEXVAL_STRING_MEANING: {
		fprintf(f,"%s",obj.sval);
		break;
	}
	case LEXVAL_NIHIL_MEANING: {
		fprintf(f,"<<nil>>");
		break;
	}
	}
}
